<?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new sfTestFunctional(new sfBrowser());

 $browser->info('1. Adauga un user')->
  get('/user/new')->

  with('request')->begin()->
    isParameter('module', 'user')->
    isParameter('action', 'new')->
  end()->
 
  click('Save', array('user' => array(
  	'user_name' => 'Pitic',
  	'pws' => '1234abcde',
  	'nume' => 'Duta',
  	'prenume' => 'Alexandra',
  	'adresa' => 'Brasov',
  	'email' => 'lexa.1103@yahoo.com',
  	'telefon' => '0766410669',
  	'id_tip' => 1,
  	'news_letter' => 0  
  	)))
  	
;